home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / wsc4vb24 / loopback.txt < prev    next >
Encoding:
Text File  |  1999-01-19  |  3.0 KB  |  70 lines

  1. ***
  2. ***      LOOPBACK Documentation
  3. ***
  4. ***      Version 2.0
  5. ***      January 18, 1999
  6. ***
  7. ***  MarshallSoft Computing, Inc.
  8. ***  POB 4543 Huntsville AL 35815
  9. ***
  10. ***  Phone: 256-881-4630
  11. ***  email: ports@marshallsoft.com
  12. ***    web: http://www.marshallsoft.com
  13. ***    ftp: ftp://ftp.marshallsoft.com/marshallsoft
  14.  
  15. *** Making a RS232 Loopback Adapter ***
  16.  
  17. An RS232 loopback adapter can easily be made from a female-female adapter.
  18. Orient the female-female adapter such that the widest part is facing up. In
  19. this orientation, the pins are numbered from right to left, top to bottom.
  20. Connect pins 2 and 3 together with a short piece of wire (or small paper clip)
  21. as shown below.
  22.  
  23. The loopback adapter can also test RTS/CTS by connecting pin RTS to CTS, as
  24. shown in the diagram below. This is recommended since the RTS/CTS pins are
  25. used for flow control. The loopback adapter can also test DTR/DSR by
  26. connecting pin DTR to pin DSR.
  27.  
  28. Lastly, connect the female-female adapter to the end of the modem cable, and
  29. you are run to run your test software. 
  30.  
  31.                     Female DB 25                              Female DB 9                                                  
  32.   +--------------------------------------------------+    +-----------------+
  33.  / o   o   o   o   o   o   o   o   o   o   o===o   o  \  / o   o   o===o   o \
  34.  \                                                    /  \                   /
  35.   \  o   o   o   o   o   o   o   o   o   o   o   o   /    \  o   o   o   o  /
  36.    +------------------------------------------------+      +---------------+
  37.                     Female DB 25                              Female DB 9
  38.   +--------------------------------------------------+    +-----------------+
  39.  /13  12  11  10   9   8   7   6   5   4   3===2   1  \  / 5   4   3===2   1 \
  40.  \                                                    /  \                   /
  41.   \ 25  24  23  22  21  20  19  18  17  16  15  14   /    \  9   8   7   6  /
  42.    +------------------------------------------------+      +---------------+   
  43.  
  44.           DB 25   DB 9    Pin Definition
  45.           =====   ====    ==============
  46.             7       5     Signal Ground (SG)
  47.             2       3     Transmit Data (TD)
  48.             3       2     Receive Data (RD)
  49.            20       4     Data Terminal Ready (DTR)
  50.             6       6     Data Set Ready (DSR)
  51.             4       7     Request to Send (RTS)
  52.             5       8     Clear to Send (CTS)
  53.             8       1     Carrier Detect (CD)
  54.  
  55. (Note: The pin positions are reversed for male connectors)
  56.  
  57. *** Making a RS422/RS485 Loopback Adapter ***
  58.  
  59. An RS422/RS485 loopback adapter can be made in a similar manner to the RS232
  60. loopback adapter. For a DB25 connector, you want to connect TD- (pin 2) to RD-
  61. (pin3), and TD+ (pin14) to RD+ (pin 16).
  62.  
  63.           DB 25   Pin Definition
  64.           =====   ==============
  65.             2     - Transmit Data (TD-)
  66.             3     - Receive Data  (RD-)
  67.            14     + Transmit Data (TD+)
  68.            16     + Receive Data  (RD+)
  69.  
  70.